﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Mvc;

namespace Microhard.Permission_MembershipImpl
{
    public static class LoginExtension
    {
        public static Guid GetCurrentUserID(this Controller ctr)
        {
            var id = ctr.HttpContext.User.Identity.Name;
            Guid finId = Guid.Empty;
            Guid.TryParse(id, out finId);
            return finId;

        }
    }
}
